Crate deno_unsync

source ·

Modules§

Structs§

Functions§

  • Equivalent to tokio::task::spawn, but does not require the future to be Send. Must only be used on a RuntimeFlavor::CurrentThread executor, though this is only checked when running with debug assertions.
  • Equivalent to tokio::task::spawn_blocking. Currently a thin wrapper around the tokio API, but this may change in the future.
  • Create a ![Send] I/O split on top of a stream. The split reader and writer halves are safe to use only in a single-threaded context, and are not legal to send to another thread.